﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemoryIndexNet.Indexes
{
    public class ComparableKeyBetweenConstraint<TKey>
        where TKey: IComparable<TKey>
    {
        readonly ComparableKeyConstraint<TKey> _min;
        readonly ComparableKeyConstraint<TKey> _max;
        
        #region Properties
        public ComparableKeyConstraint<TKey> Min
        {
            get { return _min; }
        }

        public ComparableKeyConstraint<TKey> Max
        {
            get { return _max; }
        }
        #endregion

        public ComparableKeyBetweenConstraint(ComparableKeyConstraint<TKey> min, ComparableKeyConstraint<TKey> max)
        {
            // TODO: Check for nulls
            _min = min;
            _max = max;
        }
    }
}
